﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Fastyou.Web.Framework;
using Job.Data.Interfaces;
using Castle.Windsor;

namespace Job.Logic.Common
{
    public static class DataAccess
    {
        private static IWindsorContainer container;
        static DataAccess()
        {
            container = ContainerWebAccessorUtil.ObtainContainer();
        }

        public static IJobUserDao jobUserDao
        {
            get { return container["jobUserDao"] as IJobUserDao; }
        }

        public static ICommon commonDao
        {
            get { return container["commonDao"] as ICommon; }
        }

        public static IJobHunterDao jobHunterDao
        {
            get { return container["jobHunterDao"] as IJobHunterDao; }
        }

        public static IJobBaseContentDao jobBaseContentDao
        {
            get { return container["jobBaseContentDao"] as IJobBaseContentDao; }
        }
    }
}
